package com.victualler.business.inventory.service;

import com.victualler.business.inventory.dto.GoodsModelInventoryDto;
import com.victualler.business.inventory.dto.GoodsModelInventoryScanDto;
import com.victualler.business.inventory.entity.GoodsInventoryDao;
import com.victualler.business.inventory.repository.GoodsInventoryQueryRepository;
import com.victualler.business.inventory.repository.GoodsInventoryRepository;
import com.victualler.core.base.service.BaseService;

import java.util.List;


/**
 * @author: Guoshichang
 * @discription:
 */
public interface GoodsInventoryService extends BaseService<GoodsInventoryDao, GoodsInventoryRepository,GoodsInventoryQueryRepository>{
    /**
     * 获取商品型号对应的库存
     * @param goodsId 商品id
     * @return GoodsModelInventoryDto
     */
    public List<GoodsModelInventoryDto> getGoodsModelInventory(Long goodsId);

    /**
     * 获取商品型号对应的库存
     * @param barCode 条形码
     * @return GoodsModelInventoryDto
     */
    public GoodsModelInventoryScanDto getGoodsModelInventoryScan(String barCode);
}
